// 常量类
const bindToGlobal = (obj, key = 'var') => {
  if (typeof window[key] === 'undefined') {
    window[key] = {}
  }

  for (const i in obj) {
    window[key][i] = obj[i]
  }
}
export {
  bindToGlobal
}
